package com.xiaoxing.gongqiju.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.gongqiju.mvp.contract.LiaoCheng_GongQiJu_YingJiChuKuContract;
import com.xiaoxing.gongqiju.mvp.model.LiaoCheng_GongQiJu_YingJiChuKuModel;


@Module
public class LiaoCheng_GongQiJu_YingJiChuKuModule {
    private LiaoCheng_GongQiJu_YingJiChuKuContract.View view;

    /**
     * 构建LiaoCheng_GongQiJu_YingJiChuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LiaoCheng_GongQiJu_YingJiChuKuModule(LiaoCheng_GongQiJu_YingJiChuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_GongQiJu_YingJiChuKuContract.View provideLiaoCheng_GongQiJu_YingJiChuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_GongQiJu_YingJiChuKuContract.Model provideLiaoCheng_GongQiJu_YingJiChuKuModel(LiaoCheng_GongQiJu_YingJiChuKuModel model) {
        return model;
    }
}